package com.ketai.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author:长沙科泰梦想学院-蓝色小药丸
 * @Mission:打造演说·创客型跨境电商与互联网人才
 * @Description: 日期转字符串
 * @Date:Create In 2022/8/7 11:34
 **/
public class DateTimeUtil {

    public static String dataConverString (Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        String str = sdf.format(date);
        return str;

    }
}
